import os


# text-splitter 文本切割参数
CHUNK_SIZE = 4000
CHUNK_OVERLAP = 200

# embedding和reranker 模型地址
EMBED_MODEL_PATH = os.getenv('EMBED_MODEL_PATH', r"D:\develop\pycharm\py_projects\models\bce-embedding-base_v1")
RERANK_MODEL_PATH = os.getenv('RERANK_MODEL_PATH', r"D:\develop\pycharm\py_projects\models\bce-reranker-base_v1")
IMAGE_MODEL_PATH = os.getenv('IMAGE_MODEL_PATH', r"D:\develop\pycharm\py_projects\models\dinov2-base")

#Spark config
APPID = "c4a1fba9"
API_SECRET = "YWFkOWYxMzc5YmIzMWQyNzYwZjFhZWRm"
API_KEY = "24037a6183d8c917f05ebbf865b4f0f3"
DOMAIN = "generalv3.5"  # v3.5版本
SPARK_URL = "ws://spark-api.xf-yun.com/v3.5/chat"  # v3.5环境的地址

# GLM API Key
GLM_API_KEY = os.getenv('GLM_API_KEY', "fabc0f1f271448f9a0b7207ae47f77c5.o8ITXRoUG1N1dTEe")

# LFASR API
LFASR_HOST = os.getenv('LFASR_HOST', "https://office-api-ist-dx.iflyaisol.com")
API_UPLOAD = os.getenv('API_UPLOAD', "/v2/upload")
API_GET_RESULT = os.getenv('API_GET_RESULT', "/v2/getResult")
XFYUN_APPID = os.getenv('XFYUN_APPID', "32f35bca")  # 你的讯飞appId
XFYUN_ACCESS_KEY_ID = os.getenv('XFYUN_ACCESS_KEY_ID', "843d0d96b7c122ca9158f0393729a480")  # 你的accessKeyId
XFYUN_ACCESS_KEY_SECRET = os.getenv('XFYUN_ACCESS_KEY_SECRET', "ZDY0OWJkM2Q4MTU4OTNjNTQwNjQ2ZjVm")  # 你的accessKeySecret
